package com.fbee.smartcommunities.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fbee.smartcommunities.entity.Notice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-20
 */
public interface NoticeMapper extends BaseMapper<Notice> {

    Page<Notice> selectDistinctNoticesByTitle(@Param("page") Page<?> page);

    Page<Notice> selectDistinctNoticesByTitleLike(@Param("keyword") String keyword,@Param("page") Page<?> page);

}
